//
//  WalletStatusModel.m
//  SafPay
//
//  Created by  ztryxh on 2018/6/21.
//  Copyright © 2018年 ebo. All rights reserved.
//

#import "WalletStatusModel.h"

@implementation WalletStatusModel
+(void)saveWalletToken:(NSString *)token{
    
    [[NSUserDefaults standardUserDefaults]setValue:token forKey:@"remember_token"];
    [[NSUserDefaults standardUserDefaults]synchronize];
    
}
+(NSString *)getWalletToken{
    
    if([[NSUserDefaults standardUserDefaults]valueForKey:@"remember_token"]){
        
        return [[NSUserDefaults standardUserDefaults]valueForKey:@"remember_token"];
    }else{
        
        return @"NO";
    }
}
+(void)saveWalletKeyWord:(NSString *)word{
    
    [[NSUserDefaults standardUserDefaults]setValue:word forKey:@"keyword"];
    [[NSUserDefaults standardUserDefaults]synchronize];
    
}
+(NSString *)getWalletKeyWord{
    
  
    if([[NSUserDefaults standardUserDefaults]valueForKey:@"keyword"]){
        
        return [[NSUserDefaults standardUserDefaults]valueForKey:@"keyword"];
       ;
    }else{
        
        return @"NO";
    }
    
   
    
}
@end
